import request from '@/utils/request'

export const getBuildingList = data => request.get('/park/building', { params: data })
export const getBuildingItem = id => request.get(`park/building/${ id }`)
export const getBuildingOptions = id => request.get('/park/rent/building')
export const addBuildingItem = data => request.post('/park/building', data)
export const editBuildingItem = data => request.put('/park/building', data)
export const delBuildingItem = id => request.delete(`/park/building/${ id }`)
